package com.eshopkeeper.dao.sys;


import com.eshopkeeper.core.base.BaseMapper;
import com.eshopkeeper.model.sys.SysRole;
import com.eshopkeeper.model.sys.ext.SysRoleBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysRoleMapper extends BaseMapper<SysRole> {

	void insertSysRole(SysRole sysRole);

	void updateSysRole(Map<String, Object> paramMap);

	List<Map<String,Object>> selSysRoleList();
	
	List<SysRoleBean> selectSysRoleByMap(List<Long> ids);
	
    int deleteRoleMenuById(@Param("roleId") long id);
    
    int insertMenuRole(@Param("list") List<Map<String, Object>> list);

	int deleteRoleMenuFuncById(@Param("roleId") long id);

	int insertMenuRoleFunc(@Param("list") List<Map<String, Object>> list);
}